package ym.ecrm.core.domain.customerManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;

/**
 * 联系人类
 * @author fage
 *@version 1.0
 */
@Entity
@Table(name="t_contacter")
public class Contacter extends BaseEntity{

	/**
	 *contacterCode 联系人编号
	 */
	private String contacterCode;
	/**
	 * contacterName 姓名
	 */
	private String contacterName;
	/**
	 *salutation 称谓
	 */
	private String salutation;
	/**
	 * sex 性别
	 */
	private String sex;
	/**
	 * maincontacter 是否为主要联系人
	 */	
	private String mainContacter;
	/**
	 * department 部门
	 */
	private String department;
	/**
	 * post 职务
	 */
	private String post;
	/**
	 * workPhone 工作电话
	 */
	private String workPhone;
	/**
	 * mobilePhone 移动电话
	 */
	private String mobilePhone;
	/**
	 * telephone 家庭电话
	 */
	private String telephone;
	/**
	 * fax 传真
	 */
	private String fax;
	/**
	 * email 邮箱
	 */
	private String email;
	/**
	 * msn MSN
	 */
	private String msn;
	/**
	 * qq QQ
	 */
	private String qq;
	/**
	 * postCode 邮编
	 */
	private String postCode;
	/**
	 * address 地址
	 */
	private String  address;
	/**
	 * birthday 生日
	 */
	private String  birthday;
	/**
	 * interest 个人爱好
	 */
	private String  interest;
	
	/**
	 * enterpriseCustomer 所属企业客户
	 */
	@ManyToOne(targetEntity = EnterpriseCustomer.class
	           ,cascade={CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="customerId")
	private EnterpriseCustomer enterpriseCustomer;


	public String getContacterCode() {
		return contacterCode;
	}

	public void setContacterCode(String contacterCode) {
		this.contacterCode = contacterCode;
	}

	public String getContacterName() {
		return contacterName;
	}

	public void setContacterName(String contacterName) {
		this.contacterName = contacterName;
	}

	public String getSalutation() {
		return salutation;
	}

	public void setSalutation(String salutation) {
		this.salutation = salutation;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getMaincontacter() {
		return mainContacter;
	}

	public void setMaincontacter(String maincontacter) {
		this.mainContacter = maincontacter;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getWorkPhone() {
		return workPhone;
	}

	public void setWorkPhone(String workPhone) {
		this.workPhone = workPhone;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}

	public EnterpriseCustomer getEnterpriseCustomer() {
		return enterpriseCustomer;
	}

	public void setEnterpriseCustomer(EnterpriseCustomer enterpriseCustomer) {
		this.enterpriseCustomer = enterpriseCustomer;
	}



	
	
	
}
